# -*- coding: utf-8 -*-

' a test module '

__author__='sifan'

class Student(object):
	# 定义类属性
	count=0
	# 使用Slots 限制动态绑定
	__slots__=('name','score')

	"""docstring for Student"""
	"""init 函数中定义的相当于property，定义实例属性"""
	def __init__(self, name,score):
		super(Student, self).__init__()
		self.name = name
		self.score=score
		# __class__.count+=1
		Student.count+=1
		print("call %s" % self)

	def get_grad(self):
		if self.score>=90:
			return 'A'
		elif self.score>=60:
			return 'B'
		else:
			return 'C'
